<p-dataTable [value]="scheduleDatas" [responsive]="true" id="malfunctionTable">

    <p-column selectionMode="multiple" ></p-column>
    <p-column field="sid" header="交接单号" [sortable]="true">
        <ng-template let-data="rowData" pTemplate="operator">
            <span (click)="onOperate(data)" class="ui-cursor-point" >{{data.sid}}</span>
        </ng-template>
    </p-column>
    <p-column field="creator" header="交班人" [sortable]="true"></p-column>
    <p-column field="create_time" header="交班时间" [sortable]="true"></p-column>
    <p-column field="acceptor" header="接班人" [sortable]="true"></p-column>
    <p-column field="accept_time" header="接班时间" [sortable]="true"></p-column>
    <p-column field="shiftexchange_type" header="交班类型" [sortable]="true"></p-column>
    <p-column field="status" header="状态" [sortable]="true"></p-column>
    <p-column field="color" header="操作项" [style]="{'width':'18vw'}">
        <ng-template let-data="rowData" pTemplate="operator">
            <app-btn-accept [data]="data"></app-btn-accept>
            <app-btn-delete [data]="data"></app-btn-delete>
            <app-btn-edit [data]="data"></app-btn-edit>
            <app-btn-rehandover [data]="data"></app-btn-rehandover>
            <app-btn-reject [data]="data"></app-btn-reject>
        </ng-template>
    </p-column>
    <ng-template pTemplate="emptymessage">
        当前没有数据
    </ng-template>
</p-dataTable>
<p-paginator rows="10" totalRecords="{{total}}" [rowsPerPageOptions]="[10,20,30]" pageLinkSize="3"  (onPageChange)="paginate($event)"></p-paginator>
